package com.xuxueli.applyModules.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xuxueli.applyModules.commont.testEntityFeids.RemoveTailingZero;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 */
@Getter
@Setter
@RemoveTailingZero
public class UserDto implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("主键")
    private String id;
    @ApiModelProperty("姓名")
    private String  name;
    @ApiModelProperty("邮箱")
    private String  email;
    @ApiModelProperty("序号")
    private String  gNo;
    @ApiModelProperty("年龄")
    private Integer  age;
    @ApiModelProperty("金额")
    private BigDecimal amount;
    private String amountStr;
    /**
     * 插入时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("插入时间")
    private Date insertTime;
    @ApiModelProperty("备注")
    private String note;
    @Transient
    private String temp;
}